<template>
  <div>
    <Verify
      :mode="'fixed'"
      :captcha-type="'blockPuzzle'"
      :img-size="{ width: '330px', height: '155px' }"
      @success="'success'"
    />
  </div>
</template>

<script>
// 引入组件
import Verify from '@/components/verifition/Verify'
export default {
  name: 'Captcha',
  components: {
    Verify
  },
  methods: {
    success(params) {
      console.log('come in:' + params)
      // params 返回的二次验证参数, 和登录参数一起回传给登录接口，方便后台进行二次验证
    },
    useVerify() {
      console.log('come in:')
      this.$refs.verify.show()
    }
  }
}
</script>
